package com.imooc.pojo.bo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @version 1.0
 * @Author Mr.Yang
 * @Date 2024-08-30 10:16
 * @question: 创建/更新字典BO类
 */

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class DataDictionaryBO {

    private String id;

    @NotBlank(message = "字典类型不能为空")
    private String typeCode;

    @NotBlank(message = "类型名称不能为空")
    private String typeName;

    @NotBlank(message = "字典key不能为空")
    private String itemKey;

    @NotBlank(message = "字典value不能为空")
    private String itemValue;

    @NotNull(message = "排序不能为空")
    private Integer sort;

    private String icon;

    @NotNull(message = "是否启用不能为空")
    private Boolean enable;

}
